﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using Maticsoft.DBUtility;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.OracleDAL
{
    /// <summary>
    /// 油管参数
    /// </summary>
    public class YGCSDAL
    {
        public DataTable QueryBySkgysjbId(int skgysjbId)
        {
            return DbHelperOra.Query_Table(
                string.Format("select * from tb_yg_params where skgysjbid={0}", skgysjbId));


        }

        public bool UpdateById(YGCSModel model)
        {
            return DbHelperOra.ExecuteSql(
                string.Format("update tb_yg_params set ptcd={0}, dwdj={1}, yggs={2} where id={3}",
                model.PTCD, model.DWDJ, model.YGGS, model.ID)) > 0;


        }
    }
}
